<template>
  <div class="card-active">
    <div class="item1">
      <div class="card-active-no">卡卷号码：{{ cardNo }}</div>
      <div class="card-active-date" v-if="!isActive">到期日期：{{ endDate }}</div>
      <div class="card-active-date" v-if="isActive">激活日期：{{ activeDate }}</div>
    </div>
    <div class="item2">
      <div class="guid">
        <div class="guid-query">订单查询路径：<span>我的->我的订单</span></div>
        <div class="guid-use">卡卷使用路径：<span>我的->我的权益</span></div>
      </div>

      <div class="notice">
        注意事项：<br/>
        **********************************<br/>
        **********************************<br/>
        **********************************<br/>
      </div>
    </div>

    <van-row class="item3" v-if="isActive">
      <van-col :span="24">
        <van-button type="primary" block @click="active">激活并使用</van-button>
      </van-col>
    </van-row>
  </div>
</template>

<script>
export default {
  name: "Card",
  data() {
    return {
      isActive: true,
      cardNo: '1234567890',
      endDate: '2024-09-01',
      activeDate: '2023-09-01'
    }
  },
  methods: {
    active() {

    },
    close() {
      this.$router.back()
    }
  }
}
</script>

<style lang="less" scoped>
.card-active{
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: #F8F8F8;
  font-weight: bold;

  .item1{
    margin-top: 150px;
    margin-bottom: 20px;
    text-align: center;
  }
  .item2{
    margin-left: 10px;
    margin-bottom: 30px;
    .guid div{
      margin-bottom: 10px;
    }
    .guid span{
      font-size: 14px;
      font-weight: normal;
    }
    .notice{
      margin-top: 30px;
    }
  }
  .item3{
    text-align: center;
    margin-left: 30px;
    margin-right: 30px;

    .van-button {
      margin-bottom: 10px;
    }
  }

  &-no{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  &-date{
    margin-bottom: 20px;
  }
}
</style>